<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $state 收货状态:1=未收到货,2=已收到货
 * @property bool $type 申请类型:1=退货退款,2=仅退款
 * @property float $refund_amount 退款金额
 * @property int $id
 * @property int $order_detail_id 子订单
 * @property int $order_id 订单
 * @property int $returntime 退货时间
 * @property string $apply_reason 申请原因
 * @property string $content 申请说明
 * @property string $createtime
 * @property string $images 凭证截图
 * @property string $mobile 联系电话
 * @property string $return_express 退货快递公司
 * @property string $return_waybill 退货单号
 * @property-read \app\model\SuperOrders $orders
 * @property-read \app\model\SuperOrdersDetail $orders_detail
 * @mixin \think\Model
 */
class SuperOrdersAfter extends Model
{
	protected $createTime = 'createtime';
	
	function orders()
	{
		return $this->belongsTo(SuperOrders::class,'order_id');
	}
	
	function ordersDetail()
	{
		return $this->belongsTo(SuperOrdersDetail::class,'order_detail_id');
	}
}
